Skip to content

Conversation

guessi
Copy link
Contributor

@guessi guessi commented Oct 8, 2025

Adds support for UpgradePolicy attribute during cluster creation, allowing users to specify support type (STANDARD or EXTENDED) for EKS clusters.

Resolves #7932

@guessi guessi force-pushed the feature/upgrade-policy-support branch 2 times, most recently from b00f0d6 to 6927aa3 Compare October 8, 2025 07:32
@NicholasBlaskey NicholasBlaskey added the kind/feature New feature or request label Oct 9, 2025
Copy link
Contributor

@NicholasBlaskey NicholasBlaskey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good, have a couple small comments around validation. Thanks for the contribution

@guessi guessi force-pushed the feature/upgrade-policy-support branch 2 times, most recently from ae878d6 to e04f40b Compare October 10, 2025 02:07
@guessi
Copy link
Contributor Author

guessi commented Oct 10, 2025

@NicholasBlaskey Just made an update to address issues that you pointed out - e04f40b thanks !

Copy link
Contributor

@NicholasBlaskey NicholasBlaskey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just seeing a build failure from one of the lines.

Could we get that resolved? I think we should be good after that

@guessi guessi force-pushed the feature/upgrade-policy-support branch from 6cf02eb to a6c8769 Compare October 10, 2025 18:27
Copy link
Contributor

@NicholasBlaskey NicholasBlaskey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry one more comment came up when testing this out

# UpgradePolicy allows you to specify the support type for your cluster
# Valid values are "STANDARD" and "EXTENDED (default)"
# - https://docs.aws.amazon.com/eks/latest/APIReference/API_UpgradePolicyRequest.html
upgradePolicy:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we move upgradePolicy outside of metadata and put it as a top level field?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NicholasBlaskey thanks for your review, I simplified the sample config - 3ba2905 please review again, thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we move upgradePolicy out of metadata and make it on the same level like managedNodegroups

For example so the user would have to specify

metadata:
  name: upgrade-policy-cluster
  region: us-west-2

upgradePolicy:
    supportType: "EXTENDED"

managedNodeGroups:
  - name: mng-1
    desiredCapacity: 1

We will need to update both the example and the code to account for this change. This change would help match the structure of the create cluster EKS API.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... Yes, I misunderstood what you mean.

Will do, thanks!

@guessi guessi force-pushed the feature/upgrade-policy-support branch from 3a5295a to bddce1a Compare October 14, 2025 09:42
@guessi guessi force-pushed the feature/upgrade-policy-support branch from bddce1a to dd6a97f Compare October 14, 2025 10:01
Copy link
Contributor

@NicholasBlaskey NicholasBlaskey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support passing UpgradePolicy attribute for cluster creation

2 participants